<template>
  <ul class="dropdown-select" v-if="show">
    <slot></slot>
  </ul>
</template>

<script>
  export default {
    name: "index",
    props: {
      show: Boolean
    },
    methods: {
      emitEvent (event, value) {
        this.$emit(event, value);
        this.$emit(`update:show`, false);
      }
    }
  }
</script>

<style scoped lang="scss">
  .dropdown-select {
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 10px 0 rgba(0,0,0,.1);
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 999;
    border-radius: $radius;
    li {
      padding: $padding20;
    }
  }
</style>
